package com.hissy.common.design.create.builder;

/**
 * Created by zhangyanfei on 2019/4/4.
 *
 * @author zhangyanfei
 * @date 2019/04/04
 */
public class PersonManBuilder implements PersonBuilder {

    private AbstractPerson abstractPerson;

    PersonManBuilder() {
        abstractPerson = new AbstractPerson();
    }

    @Override
    public void buildHead() {
        abstractPerson.setHead("man buildHead");
    }

    @Override
    public void buildBody() {
        abstractPerson.setBody("man buildBody");
    }

    @Override
    public void buildFoot() {
        abstractPerson.setFoot("man buildFoot");
    }

    @Override
    public AbstractPerson buildPerson() {
        return abstractPerson;
    }
}
